<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>机器人模拟投注</title>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/public/admin/css/H-ui.css" rel="stylesheet" type="text/css" />
<link href="/public/admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="/public/admin/font/font-awesome.min.css"/>

<script type="text/javascript" src="/public/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/admin/layer/layer.min.js"></script>
</head>
<body>
<nav class="Hui-breadcrumb"> <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div style="width: 500px;margin: 50px auto 0;">
        <table class="table" border=1>
            <tr>
                    
                    <td>
                        <span> 发送时间：</span> <input id="times" type="number" value="<?php echo $arr3[0]['jq_time'];?>" placeholder="单位：秒"/>
                    </td>
                    <td>
                            <select id="openj">
                                <?php if($arr3[0]['jq_on']==1):?>
                                    <option value="1" selected="selected">开启</option>
                                    <option value="2">关闭</option>
                                <?php else:?>
                                    <option value="1" >开启</option>
                                    <option value="2" selected="selected">关闭</option>
                                <?php endif;?>
                            </select>
                    </td>
                    <td>
                             <a id="actions" class="btn btn-success radius"> 保 存 设 置 </a>
                    </td>
              </tr>
         </table>
 </div>
<div class="main">
    <div class="umsg"><nav class="Hui-breadcrumb">随机用户信息<a class="btn btn-success radius r mr-20" onclick="Lalert(500,300,'添加用户','/?G=admin/addjqr&t=1');">添加用户</a></nav>
     <div class="usetdivn">
     <?php foreach ($arr1 as $k=>$v):?>
        <div class='divumsg'><img  src="<?php echo $v['pic'];?>"><span><?php echo $v['ct'];?></span><a onclick="return confirm('确定要删除么？');" href="/?G=admin/deljqr&i=<?php echo $v['ID'];?>" class="btn btn-danger radius ml-30" id="umessge"> 删 除 </a></div>
        <?php endforeach;?> 
     </div>
        
    </div>
    <div class='uset'><nav class="Hui-breadcrumb">随机发送内容<a class="btn btn-success radius r mr-20" onclick="Lalert(500,300,'添加信息','/?G=admin/addjqr&t=2');">添加信息</a></nav>
        <div class="usetdivn">
          <?php foreach ($arr2 as $k=>$v):?>
            <p><?php echo $v['ct'];?> <a class="btn btn-danger radius ml-40" id="umessge" onclick="return confirm('确定要删除么？');" href="/?G=admin/deljqr&i=<?php echo $v['ID'];?>" >删除</a></p>
            <hr/>
            <?php endforeach;?> 
          </div>
    </div>
</div>
<style>
    .usetdivn{margin: 0 auto;overflow:auto;width: 100%;height: 100%;}
    .uset p{width: 80%;height: 30px;margin:10px auto 0;line-height: 30px;font-size: 16px;}
    .divumsg{width: 80%;height: 50px;margin: 5px auto 0;border: 1px solid #ccc;}
    .divumsg img{width: 40px;height: 40px;margin-top: 5px;margin-left: 5px;float: left;}
    .divumsg span{display: block;text-align: center;}
    #umessge{height: 15px;line-height: 15px;font-size: 12px;margin-top: 0px;}
    .umsg{overflow:hidden; margin-bottom: 50px;overflow:hidden;width: 250px;height: 400px;float: left;margin-left: 10%;margin-top: 20px;border: 1px solid #ccc;}
    .uset a{height: 25px;line-height: 25px;margin-top: 3px;}
    .uset{overflow:hidden;margin-bottom: 50px;margin-left:5%; width: 40%;height:400px;float: left;margin-top: 20px;border: 1px solid #ccc;}
    .umsg a{height: 25px;line-height: 25px;margin-top: 3px;}
    .table input{width: 120px;height: 25px;padding-left: 10px;}
    .table span{font-size: 14px;}
    .table select {
    	width: 60px;height:25px;
    	color: white;
    	background-color: #5DBB5D;font-size:14px;
    }
    .table select option{font-size:14px;}
</style>
</body>
</html>
<script type="text/javascript" src="/public/admin/js/self.js"></script>

<script>
	$(function(){
		$("#actions").click(function(){
			var t=$("#times").val();
			var o=$("#openj").val();
			if(t<0 || (o<1 || o>2)){
				  Malert('时间必须大于0');
			}
			 $.ajax({
		         type: "POST",
		         url: "/index.php?G=admin/setjqr",
		         data:{'t':t,'o':o},
		         success:function(data){
			         Malert(data);
			         
		         }
			 });

		});
		
	});

</script>